import { ref, watch } from "vue";

export default function () {
  const title = ref('默认值')
  document.title = title.value
  watch(title, (val) => {
    document.title = val
  })
  return {
    title
  }
}